﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using JESAI.Core.Module;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace JESAI.Core.Extensions
{
    public static class ModuleExtensions
    {
        public static IServiceCollection AddJESAIModules(this IServiceCollection services, Type startType, ILogger _logger=null)
        {
            var moduleManager = new ModuleManager(startType);
            Assembly[] assemblies2 = moduleManager.ToAssemblyArray(moduleManager.Invoker());
            return services;
        }     
    }
}
